﻿/*****************************************************************//**
 * @file    FITKOCCViewAdaptorModelPreview.h
 * @brief   Adaptor for previewing occ 'model' data.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-08-28
 *********************************************************************/

#ifndef __FITKOCCVIEWADAPTORMODELPREVIEW_H__
#define __FITKOCCVIEWADAPTORMODELPREVIEW_H__

#include "FITKOCCViewAdaptorBase.h"

#include "FITKOCCGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for previewing occ 'model' data.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-08-28
     */
    class FITKOCCGRAPHADAPTORAPI FITKOCCViewAdaptorModelPreview : public FITKOCCViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKOCCViewAdaptorModelPreview);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-08-28
         */
        explicit FITKOCCViewAdaptorModelPreview() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-08-28
         */
        ~FITKOCCViewAdaptorModelPreview() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-08-28
         */
        bool update() override;

    };

    // Regist model adaptor
    Register2FITKViewAdaptorFactory(GeoModelPreviewOCC, Interface::FITKAbsGeoCommand, FITKOCCViewAdaptorModelPreview);
}   // namespace Exchange

#endif // __FITKOCCVIEWADAPTORMODELPREVIEW_H__